import Vue from "vue";
import VueRouter from "vue-router";
import FileList from "@/views/FileList.vue";

Vue.use(VueRouter);
// 创建不同的路由放到routes列表中
const routes = [
    {
    path: '/file',
    name: 'file',
    component: FileList
    }
]
//创建router实例
const router = new VueRouter({
    mode: "hash",
    routes: routes
})
// 向外暴露router
export default router;